<!--
 * @Author: 张瑞
 * @Date: 2021-08-31 16:38:51
 * @LastEditors: huangl
 * @LastEditTime: 2021-12-30 10:07:18
 * @Description: file content
 * @FilePath: \vue2xComponents\src\modules\demo\views\cbB\cp2\cp2.vue
-->
<template>
  <div>
    <yTable :data="data" :options="options" />
  </div>
</template>

<script>
export default {
  name: 'cp2',
  data() {
    return {
      data: [
        {
          name: "张三",
          age: "26",
          height: "1.95",
          children: [
            {
              id: 31,
              date: "2016-05-01",
              name: "王小虎",
              address: "上海市普陀区金沙江路 1519 弄",
            },
            {
              id: 32,
              date: "2016-05-01",
              name: "王小虎",
              address: "上海市普陀区金沙江路 1519 弄",
            },
          ],
        },
        {
          name: "张四",
          age: "26",
          height: "1.95",
        },
        {
          name: "张五",
          age: "26",
          height: "1.95",
        },
      ],
      options: {
        stripe: true,
        border: true,
        list: [
          {
            label: "姓名",
            // width: 200,
            prop: "name",
            type: "input",
            // rules
          },
          {
            label: "年龄",
            // width: 200,
            prop: "age",
            // rules
          },
          {
            label: "身高",
            // width: 200,
            prop: "height",
            // rules
          },
        ],
      },
    };
  },
};
</script>